package org.xiji.visitor2;

public class ElementImpl implements Element{
    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public void print() {
        System.out.println("元素被访问了");
    }
}
